<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!-- 头部 -->	
<%@ include file="./space_head1.jsp"%>
<!-- 导航 -->	
<%@ include file="./space_head2.jsp"%>

<script language="javascript">
	// 初始化点击分页按钮的方法
	onPageClickFunction = function(pageNo, event){
		location.href = '/sumer/course/initCourse/' + pageNo + '/9';
	};
</script>

		<div class="zyt_body" style="height: auto;">
		
			<div class="zy_right01" style="min-height: 300px; height: auto;">
				<div class="zy_rightm">
					<div class="zy_rightm01">TA的课程</div>
				</div>
				<c:forEach items="${pageData.data}" var="course" varStatus="status" begin="0" end="10">
					<c:if test="${status.index%3 == 0}">
						<div class="zy_right0101">
					</c:if>
						<div class="zy_right0100"></div>
						<div class="zy_right0102">
							<div class="zy_right0103">
								<a href="
									<c:choose>
										<c:when test="${course.courseSubject==2}">${fn:replace(COURSE_TOPIC_URL,'${courseId}',course.courseId)}</c:when>
										<c:when test="${course.courseClass==1}">${fn:replace(COURSE_PUBLIC_URL,'${courseId}',course.courseId)}</c:when>
										<c:when test="${course.courseClass==2}">${fn:replace(COURSE_PRIVATE_URL,'${courseId}',course.courseId)}</c:when>
									</c:choose>
								" target="_blank"> <img width="230" height="170"  src="${ImageServer}/${course.coursePimg}" /> <br/>
								</a>
							</div>
							<div class="zy_right0104">
								<a href="
									<c:choose>
										<c:when test="${course.courseSubject==2}">${fn:replace(COURSE_TOPIC_URL,'${courseId}',course.courseId)}</c:when>
										<c:when test="${course.courseClass==1}">${fn:replace(COURSE_PUBLIC_URL,'${courseId}',course.courseId)}</c:when>
										<c:when test="${course.courseClass==2}">${fn:replace(COURSE_PRIVATE_URL,'${courseId}',course.courseId)}</c:when>
									</c:choose>
								" target="_blank"> ${course.courseNm} </a>
							</div>
						</div>
					<c:if test="${status.index%3 == 2 or status.last}">
						</div>
					</c:if>
				</c:forEach>

				<%@ include file="../paging_form.jsp"%>			 	
			</div>
		</div>

	 
	 
	 <!--  结尾 -->
	 <%@ include file="../all_buttom.jsp"%>
	 
 </body>
</html>
